package com.kehongborui.fliggy.entity;

import java.util.Date;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-09-10
 */
public class Log {
    private Long id;
    /**
     * 执行动作
     */
    private String action;
    /**
     * 执行时间
     */
    private Date eventTime;
    /**
     * 执行用户
     */
    private String username;
    /**
     * 校验码
     */
    private String code;
    /**
     * 操作uri
     */
    private String uri;
    /**
     * 操作IP
     */
    private String ip;
    /**
     * 操作结果
     */
    private String result;

    /**
     * 操作内容
     */
    private String content;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Date getEventTime() {
        return eventTime;
    }

    public void setEventTime(Date eventTime) {
        this.eventTime = eventTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Log{" +
                "id=" + id +
                ", action='" + action + '\'' +
                ", eventTime=" + eventTime +
                ", username='" + username + '\'' +
                ", code='" + code + '\'' +
                ", uri='" + uri + '\'' +
                ", ip='" + ip + '\'' +
                ", result='" + result + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
